package com.mlnx.transport.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;
import org.springframework.data.mongodb.core.MongoTemplate;

/**
 * Created by amanda.shan on 2020/3/19.
 */
//@Configuration
//@ConfigurationProperties(prefix = "spring.data.mongodb.c121")
//@Component
public class Mongo121Config extends AbstractMongoConfig{

    @Primary
    @Bean(name = "template121")
    @Override
    public MongoTemplate getMongoTemplate() throws Exception {
        return new MongoTemplate(mongoDbFactory());
    }

}
